import {patch} from '../vdom/patch';
import {patch2} from '../vdom/patch2';
import setFn from './setFn';
function mountComponent(vm){
  const vnode = vm._render()
  // vm.$options.vnode = vnode;
  vm._update(vnode);
}
function lifecycleMixin(vm){
  vm._update = function(vnode){
    patch2(vm.vnode,vnode,vm)
  }
}
export{mountComponent,lifecycleMixin}